<?php
class Apartement extends AppModel {

	var $name = 'Apartement';
	var $primaryKey = 'apartement_id';

	var $validate = array(
		'apartement_id' => VALID_NUMBER,
		'apartementNumber' => VALID_NOT_EMPTY,
	);

/*	var $belongsTo= array(
			'Language' =>
				array('className' => 'Language',
						'foreignKey' => 'languageId'
				)

	);
 */

	function getApartementList() {
		return $this->generateList(null, null, null, "{n}.Apartement.apartement_id", "{n}.Apartement.apartementNumber");
	}
}
?>
